<?php

declare(strict_types=1);
/**
 * This file is part of habo_new_media.
 *
 * @link     https://www.berlen.cn/
 * @contact  tech@berlen.cn
 * @license  http://gitlab.rehou.cn/habo/habo_new_media/-/blob/master/README.md
 */
namespace app\service\stat\daily;

use think\Model;

interface DailyInterface
{
    /**
     * 设置数据.
     * @return mixed
     */
    public function setData(Model $model);

    /**
     * 过滤数据.
     * @return mixed
     */
    public function filter();

    /**
     * 保存数据.
     * @return mixed
     */
    public function saveStatData();

    /**
     * 获取汇总数据.
     * @return mixed
     */
    public function getDailyModel(int $statDate, ...$arg);

    /**
     * 归档(历史数据表).
     * @return mixed
     */
    public function archive(int $statDate);
}
